package user_center.role.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import user_center.role.mapper.SystemRoleMapper;
import user_center.role.pojo.SystemRole;
import user_center.role.pojo.SystemRoleUser;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Ezio.Auditore
 * @since 2021-12-20
 */
@Service
public class SystemRoleServiceImpl extends ServiceImpl<SystemRoleMapper, SystemRole> {

    @Autowired
    SystemRoleMapper systemRoleMapper;


    public List<SystemRoleUser> getUserRoleList(Integer userId) {
        return systemRoleMapper.getUserRoleList(userId);
    }
}
